﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CountTime : MonoBehaviour
{
    private float m_time;
    public bool m_input;

    private void Update()
    {
        if (m_time > 10)
        {
            m_time = 0;
            if (m_input == false)
            {
                //判定游戏失败
                //恢复血量
                BooldControl.Instance.Health = 100;
                BooldControl.Instance.Mood = 100;
                //骰子数量归零
                CardsControl.Instance.OwnDiceCount = 0;
                Hint.Instance.ShowHint("游戏失败Over Σσ(・Д・；)我我我什么都没做!!!");
            }
        }
        else
        {
            m_time += Time.deltaTime;
        }
    }
}